<?php

Loader::using("ext::libs::AssetsLoader");

function smarty_function_html_script($params, $template) {
    if (isset($params["src"])) {
        $src = $params["src"];
        AssetsLoader::script($src);
    }else if(isset ($params["url"])){
        $url = $params["url"];
        AssetsLoader::urlScript($url);
    }

    return "";
}

?>
